package com.xhsj.user.pms.workflow.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xhsj.user.pms.workflow.packages.ExecUser;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_pam_workflow_node")
public class WorkflowNode extends Model<WorkflowNode> {
    /**
     * 流程节点表主键ID
     */
    @TableId("node_id")
    private String nodeId;
    /**
     * 关联流程定义表主键ID
     */
    @TableField("node_parent_id")
    private String nodeParentId;
    /**
     * 节点名称
     */
    @TableField("node_name")
    private String nodeName;

    /**
     * 节点顺序
     */
    @TableField("node_num")
    private Integer nodeNum;

    /**
     * 节点别名
     */
    @TableField("node_alias")
    private String nodeAlias;

    /**
     * 阶段状态
     */
    @TableField("phase_status")
    private String phaseStatus;

    @TableField(exist = false)
    private ExecUser execUser;

    private static final long serialVersionUID = 1L;
}